<?php
$__FILEPATH__ = dirname(__FILE__)."/";
require_once($__FILEPATH__."./func_common.php");
require_once($__FILEPATH__."./class_def.php");
require_once($__FILEPATH__."./conf/info.php");
header("Content-Type: text/html; charset=UTF-8");

$PageArray = array();
$mysqli = GetMysqliInstance();

$result = $mysqli->query("select * from recordlist order by cdate desc", MYSQLI_USE_RESULT);
$PageArray["recordlist"] = array();
if ($result)
{
	while($row = $result->fetch_array(MYSQLI_ASSOC))
	{
		$RecordItem = new RecordListItem();
		$RecordItem->cname 		= $row["cname"];
		$RecordItem->cdate 		= $row["cdate"];
		$RecordItem->teamname 	= $row["teamname"];
		$RecordItem->teammember = $row["teammember"];
		$RecordItem->coach 		= $row["coach"];
		$RecordItem->award 		= $row["award"];
		$RecordItem->extra 		= $row["extra"];
		$PageArray["recordlist"][] = $RecordItem;
	}
	$result->close();
}

$mysqli->close();

?>